﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using OperaHouse.Domain.Contacts;

namespace OperaHouse.DAL.Mapping.Contacts
{
    public partial class ContactMap : EntityTypeConfiguration<Contact>
    {
        public ContactMap()
        {
            this.ToTable("Contacts");
            this.HasKey(c => c.Id);
            this.Property(u => u.Name);
            this.Property(u => u.Phone);
            this.Property(u => u.Address);
            this.Property(u => u.Email);
            this.Property(u => u.Body);
            this.Property(u => u.CreatedOn);
        }
    }
}
